<template>
  <app-view>
    <my-access-code :user-info="userInfo" @on-click-left="onClickLeft" />
  </app-view>
</template>

<script>
  import MyAccessCode from '@views/modules/visitor/components/my-access-code';
  import { getUserInfo } from '@utils/auth';

  export default {
    components: { MyAccessCode },
    data() {
      return {
        userInfo: getUserInfo()
      };
    },
    methods: {
      onClickLeft() {
        this.$router.push('../user');
      }
    }
  };
</script>

<style scoped lang="less">
  @import '~@styles/var';
</style>
